// pages/set/me/tjr/tjr.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
dqtjr:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
	  console.log(options)
	  this.setData({
		  dqtjr:options.tjr
	  })
		wx.getStorage({
			key:'uid',
			success:(e)=>{
				this.setData({
					uid:e.data.uid
				})
			}
		})
  },
  phone(e){
	  this.setData({
		  phone:e.detail.value
	  })
  },
  sure(e){
	  wx.request({
		  url:getApp().globalData.http+'action=bdtjr&uid='+this.data.uid+'&mobile='+this.data.phone,
		  method:"POST",
		  success:(e)=>{
			  console.log(e)
			  wx.switchTab({
				  url:'../../../index/index',
				  success: () => {
				  	wx.showToast({
				  					  title:e.data.msg,
				  					  icon:'none'
				  	})
				  }
			  })
		  }
	  })
  }
})